package siyuan.run.sentinel.chain.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import siyuan.run.sentinel.chain.service.ChainService;

/**
 * @program: sy
 * @description:
 * @author: SY
 * @create: 2020-12-18 13:44
 **/
@RestController
@RequestMapping("chain")
public class ChainController {

    @Autowired
    private ChainService chainService;


    @GetMapping("a")
    public String a(){
        chainService.chainTest();
        System.out.println("a 接口");
        return "a";
    }

    @GetMapping("b")
    public String b(){
        chainService.chainTest();
        System.out.println("b 接口");
        return "b";
    }
}
